package com.wsoft.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author z001
 * @Date 2024/10/23 18:14
 */
@Data
public class JobVO {
    @Schema(description = "id")
    private Long id;

    @Schema(description = "编码")
    private String code;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "类路径")
    private String classPath;

    @Schema(description = "cron执行表达式")
    @TableField("cron")
    private String cron;

    @Schema(description = "最后一执行时间")
    private LocalDateTime lastExecuteTime;

    @Schema(description = "参数")
    private String params;

    @Schema(description = "状态（0：暂停；1：启动）")
    private Integer status;

    @Schema(description = "未来N次任务执行时间")
    private List<LocalDateTime> nextJobExecuteTimeList;
}
